﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BusinessObjects.BO_GetObjects;

public partial class Controls_CategoryTitle : Base_Controls
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataTable objDT = BO_portal_categories.Search(Convert.ToInt32(Request["CATEGORY_ID"]));
            if (objDT.Rows.Count > 0)
            {
                if (!base.Lang)
                    sTitle.InnerText = objDT.Rows[0]["FULL_CATEGORY_NAME"].ToString();
                else
                    sTitle.InnerText = objDT.Rows[0]["FULL_CATEGORY_NAME_ENG"].ToString();
            }
        }
    }
}